const Bundle = require("./bundle.js");

/**
 * rollup的主函数
 * @param {string} entry 要打包的入口文件路径
 * @param {string} outputEileName 打包后的文件路径
 */
const rollup = (entry, outputEileName) => {
    const bundle = new Bundle({ entry });

    bundle.build(outputEileName);
}

module.exports = rollup;